# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=doxygen
pkgver=1.8.19
pkgrel=0
pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
url="http://www.doxygen.nl/"
arch="all"
license="GPL-2.0-or-later"
checkdepends="libxml2-utils"
makedepends="flex bison coreutils perl python3 cmake"
source="http://doxygen.nl/files/doxygen-$pkgver.src.tar.gz
	"

build() {
	cmake -B build \
		-DGIT_EXECUTABLE=/bin/false \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-Dbuild_xmlparser=ON .
	make -C build
}

check() {
	# Remove test that use bibtex
	rm -f ./testing/012_cite.dox
	make -C build test
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="d7441bbf7268b16f77d31dc13849ccf8862b27f2a564538d163f1a1c120d52f241697b6e8a85f6bab93ac1dd77d6e5a6c6a836f15135899dc4a3b3f24be1abab  doxygen-1.8.19.src.tar.gz"
